home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Leonardo the Inventor
/
Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso
/
LEOWINMV
/
SHARED.DIR
/
03104_Script_INITIALIZE-LEAVE-START
< prev
next >
Wrap
Text File
|
1996-04-01
|
4KB
|
120 lines
-- -----------------------------------------------------------
-- Handler initializeLeo2
on initializeLeo2
global dialogSprite, initializeLeoFlag
global printCardRect, printFullScreenRect, printAllCardsRect
global copyTextCast, copyPictureCast
global pasteNowRect, cancelPasteRect
global printDialogLocH, printDialogLocV
global pasteDialogLocH, pasteDialogLocV
-- since initialize is called in a frame that gets visited more than once,
-- only initialize if initialization hasn't been done yet.
if voidP(initializeLeoFlag) then
set dialogSprite = 39
set printDialogLocH = 350
set printDialogLocV = 200
set printCardRect = rect(312, 166, 390, 215)
set printFullScreenRect = rect(196, 166, 274, 215)
-- set printAllCardsRect = rect(428,166,506,215)
set pasteDialogLocH = 360
set pasteDialogLocV = 240
set pasteNowRect = rect(221, 256, 316, 318)
set cancelPasteRect = rect(380, 255, 475, 317)
set initializeLeoFlag = TRUE
set copyPictureCast = 3092
set copyTextCast = 3125
resetCategoryNarrationFlags
setButtonCastGlobals
set the exitLock to FALSE -- Set to TRUE by ET March 20 1996,
-- so user can't exit without clicking "Quit". But, due to bug
-- in projectors, can't set to TRUE. So, set to false.
end if
end
on il2
initializeLeo2
end
-- -----------------------------------------------------------
-- Handler leaveLeo2 cleans up.
on leaveLeo2
pauseClick 2*60
unBlackOutScreen
quit
end
-- ---------------------------------------------------------------
-- Handler startMovie
on startMovie
setAuxiliarySearch
stopPlayingLoadingSound
end
-- ---------------------------------------------------------------
-- Handler setAuxiliarySearch sets the searchpath for auxiliary files.
on setAuxiliarySearch
set movieName = the movie
set movieNameLength = length(movieName)
-- the following is the old line, when all movies had less than 8 chars
-- in the old leonardo, some movie names had 8 chars and then the
-- media folder had 9 chars
-- set folderName = char 1 to (movieNameLength - 4) of movieName
set folderName = char 1 to (movieNameLength - 4) of movieName
if (length(folderName) >= 8) then set folderName = char 1 to 7 of folderName
set folderName = folderName & "A"
set the searchPath = [the pathName & folderName]
end
-- ---------------------------------------------------------------
-- Handler setButtonCastGlobals sets the global variables used
-- to hilite buttons.
on setButtonCastGlobals
global smallBtnNoScriptHilited
set smallBtnNoScriptHilited = the number of cast "Small Btn NO SCRIPT Hilited"
global greyBtnHilited
set greyBtnHilited = the number of cast "Grey btn hilited"
global smallBtnHilited
set smallBtnHilited = the number of cast "Small Btn Hilited"
global largeButtonHilited
set largeButtonHilited = the number of cast "Large Button Hilited"
global mediumButtonHilite
set mediumButtonHilite = the number of cast "Medium Button Hilited"
global replayHilited
set replayHilited = the number of cast "Replay Hilited"
global greyPrintBtnHilited
set greyPrintBtnHilited = the number of cast "Grey Print btn hilited"
global PrintBtnHilited
set PrintBtnHilited = the number of cast "Print Btn Hilited"
global CopyBtnHilited
set CopyBtnHilited = the number of cast "Copy Btn Hilited"
-- global MediumButtonHilitedNoSCRIPT
-- set MediumButtonHilitedNoSCRIPT = the number of cast "Medium Button Hilited NO SCRIPT"
global InventBtnHilited
set InventBtnHilited = the number of cast "Invent Btn Hilited"
global QuitBtnHilited
set QuitBtnHilited = the number of cast "Quit Btn Hilited"
end